
#ifndef   __SIMPHONY_SOUND
#define   __SIMPHONY_SOUND

//#define 	DIAL_TONE_SOUND	3600
#define 	SOUND_TONE			3700
#define	RING_LONG			2800
#define	BEEP_LONG			550
#define  ERROR_LONG			2600    

extern volatile near bit RingSound;	
extern volatile near bit Beep;
extern volatile near bit BeepError;
extern volatile near bit Beep_SMS;
extern volatile near unsigned char Beep_Long;
extern volatile unsigned int near count3;//BEEP_LONG; 

void BEEP ( void );
void BEEP_ERROR( void );
//#define 	 BEEP()				{if ( !count3 )count3 = BEEP_LONG; Beep = 1; CCP4CON = 0x02;}  
//#define   BEEP_ERROR() 		{count3 = ERROR_LONG;  Beep = 1; CCP4CON = 0x02; }
#define   RING()				{CCP4CON = 0x02; RingSound = 1;}
#define   BEEP_SMS()			{count3 = 2400; Beep_SMS = 1; CCP4CON = 0x02; } 

#define   DIAL_TONE		TMR1ON

void Sound_Init ( void );
void SoundTest( void );

#endif
